import http from "@/api/index";

export function addCruiserSave(data: Object): Promise<Object> {
  return http.request({
    url: `/inspection/data/addInspectionPerson`,
    method: "POST",
    data:data
  });
}

export function getCruiserList(data: Object): Promise<Object> {
  return http.request({
    url: `/inspection/data/getInspectionPersonList`,
    method: "POST",
    data:data
  });
}
// export function getCruiserList(data: Object): Promise<Object> {
//   return http.request({
//     url: `/inspection/data/downloadInspectionPersonQRCode`,
//     method: "POST",
//     data:data
//   });
// }
export function downloadQRCode(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/downloadQRCode`,
    method: "POST",
    data:data
  });
}
export function deviceDel(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/downloadQRCode`,
    method: "POST",
    data:data
  });
}
// 删除巡检点列表
export function deviceDelList(data:Object): Promise<any> {
  return http.request({
    url: `/inspection/data/delInspectionPerson`,
    method: "POST",
    data:data
  });
}
// 获取巡检人员
export function getInspectionAccountLis(data:Object): Promise<any> {
  return http.request({
    url: `/inspection/data/getInspectionAccountList`,
    method: "POST",
    data:data
  });
}
// 上传图片接口
export function uploadFile(data:Object): Promise<any> {
  return http.request({
    url: `/common/overall/uploadFile`,
    method: "POST",
    data:data
  });
}
// 全部巡检点
export function getAllInspectionPersonList(data:Object): Promise<any> {
  return http.request({
    url: `/inspection/data/getAllInspectionPersonList`,
    method: "POST",
    data:data
  });
}
// 巡检点二维码
export function downloadInspectionPersonQRCode(data:Object): Promise<any> {
  return http.request({
    url: `/inspection/data/downloadInspectionPersonQRCode`,
    method: "POST",
    data:data
  });
}
// 今日预警
export function detectionlistLog(data:Object): Promise<any> {
  return http.request({
    url: `/front/data/detectionLog`,
    method: "POST",
    data:data
  });
}
// 巡检点日志
export function getInspectionPersonitem(data:Object): Promise<any> {
  return http.request({
    url: `/inspection/data/getInspectionPersonTaskLogList`,
    method: "POST",
    data:data
  });
}